package net.learn.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.learn.system.entity.SysAnswerEntity;
import net.learn.system.entity.SysCheckBoxEntity;
import net.learn.system.query.SysAnswerQuery;
import net.learn.system.vo.SysAnswerVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 李立志
 * @since 2022-01-11
 */
@Mapper
public interface SysAnswerDao extends BaseMapper<SysAnswerEntity> {

    List<SysAnswerVO> qryAnswerRandList(@Param("SysAnswerQuery") SysAnswerQuery qry);

    List<SysAnswerVO> qryAnswerPaper(@Param("SysAnswerQuery") SysAnswerQuery qry);

    List<SysAnswerVO> qryPaperAnswerList(@Param("SysAnswerQuery") SysAnswerQuery qry);

    List<SysAnswerVO> qryPaperAnswerCondition(@Param("SysAnswerQuery") SysAnswerQuery qry);

    IPage<SysAnswerEntity> qryAnswerListPage(IPage<SysAnswerEntity> page, @Param("SysAnswerQuery") SysAnswerQuery qry);

    IPage<SysAnswerEntity> qryQuestionAnswer(IPage<SysAnswerEntity> page, @Param("SysAnswerQuery") SysAnswerQuery qry);
}
